package com.cjkj.common.core.constant;

/**
 * 正则表达式常量
 */
public class RegConstants {

    // 手机号
    public static final String PHONE_NUMBER = "^((13[0-9])|(14[0,1,4-9])|(15[0-3,5-9])|(16[2,5,6,7])|(17[0-8])|(18[0-9])|(19[0-3,5-9]))\\d{8}$";

    // 身份证
    public static final String ID_CARD = "^[1-9][0-9]{5}(18|19|20)[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}([0-9]|(X|x))";

    // 邮箱
    public static final String EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";

    // 密码
    public static final String PASSWORD = "^[0-9A-Za-z@$!%*?&_]{8,20}$";

    // 验证码
    public static final String CAPTCHA = "^[0-9]{6}$";

}
